<template>
      <el-table :data="info.list" stripe style="width: 100%">
    <el-table-column prop="username" label="姓名"/>
    <el-table-column prop="userpwd" label="密码"/>
   <el-table-column prop="end" label="操作">
      <template #default>
         <el-button type="danger">删除</el-button>
         
         </template>


   </el-table-column>
  </el-table>
</template>

<script setup>
import {reactive,onMounted} from 'vue'
import {userlist} from '../model/user'

let info = reactive({
   list:[]
})

onMounted(async()=>{
   let {data} = await userlist({})
   info.list=data.result
})




</script>

<style>

</style>